﻿
#region Namespace imports

using System;
using System.Globalization;

#endregion

namespace System.Search.Linq
{
    /// <summary>
    /// Helper class to handle runtime errors, occurring during query execution and while retrieving results. Methods will throw an exception.
    /// </summary>
    /// 
    public class EmptySecuenceError : Exception{
      
    }

    internal static class RuntimeErrors
    {

        public static Exception FatalError()
        {
            throw new InvalidOperationException("Fatal Error");
        }


        public static Exception UnsupportedQueryOperator(string queryOperator)
        {
            return new InvalidOperationException( "Invalid operator" + queryOperator);

        }


        public static Exception EmptySequence()
        {
            return new EmptySecuenceError();
        }
      

      
    }
}
